package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import net.wxxr.http.interfaces.IJsonParser;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.beans.BodyTypeBean;

public class BodyListBean implements Serializable, IJsonParser {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1117537931038498609L;
	
	private BabyProfileBean baby_profile;
	private ArrayList<BodyTypeBean> list;
	private int next_cursor;
	private int total_number;
	private String desc;
	private String error;
	
	public BabyProfileBean getBaby_profile() {
		return baby_profile;
	}

	public void setBaby_profile(BabyProfileBean baby_profile) {
		this.baby_profile = baby_profile;
	}

	public ArrayList<BodyTypeBean> getList() {
		return list;
	}

	public void setList(ArrayList<BodyTypeBean> list) {
		this.list = list;
	}

	public int getNext_cursor() {
		return next_cursor;
	}

	public void setNext_cursor(int next_cursor) {
		this.next_cursor = next_cursor;
	}

	public int getTotal_number() {
		return total_number;
	}

	public void setTotal_number(int total_number) {
		this.total_number = total_number;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		Gson gson = null;
		if (null != json) {
			GsonBuilder b = new GsonBuilder();
			gson = b.create();
			return gson.fromJson(json, BodyListBean.class);
		}
		return null;
	}

}
